package com.learner.pojo.infos;

import lombok.Data;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import org.springframework.data.mongodb.core.mapping.Document;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * @author ice2020x
 * @Date: 2023/3/7
 * @Description:
 **/
@Data
@Document(collection = "t_infos")
public class Infors implements Serializable {
    private static final long serialVersionUID = -1L;
    @Id
    private String id;
    @CreatedDate
    private Date createTime;
    @LastModifiedDate
    private Date updateTime;
    /**
     * 内容
     */
    private String content;
    /**
     * 点击数
     */
    private Long clickNum;
    /**
     * 作者
     */
    private String author;
    /**
     * 标题
     */
    private String title;
    /**
     * 类别
     */
    private String category;
    /**
     * 收藏数
     */
    private Long collectNum;
}
